import request from '@/utils/request';

/* 赠送规则详情 */
export async function get_setting(params) {
  const res = await request.post(
    '/member/points_send_rule/get_setting',
    params
  );
  if (res.data.code === 1) {
    return res.data.data;
  }
  return Promise.reject(res.data.msg);
}
/* 赠送规则设置 */
export async function setting(params) {
  const res = await request.post(
    '/member/points_send_rule/setting',
    params
  );
  if (res.data.code === 1) {
    return res.data;
  }
  return Promise.reject(res.data.msg);
}
